package wzc.design_pattern.behaviour.strategy;

/**
 * @Author 那和不是个啥
 * @Date 2025/7/20
 * @Description
 */

public class AlipayPayment implements PaymentStrategy {
    private String account;

    public AlipayPayment(String account) {
        this.account = account;
    }

    @Override
    public void pay(int amount) {
        System.out.println("使用支付宝支付 " + amount + " 元，账户: " + account);
    }
}
